package com.damie.web.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.damie.common.dao.WasteOrder;
import com.damie.common.dto.WasteOrderDto;
import com.damie.common.paramer.WasteOrderParamer;
import com.damie.web.vo.*;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ls
 * @since 2021-01-19
 */
public interface WasteOrderService extends IService<WasteOrder> {
    List<WasteOrder> findAll(WasteOrderParamer wasteOrderParamer);
    Page<WasteOrder> getPageVo(Page<WasteOrder> iPage,WasteOrderParamer wasteOrderParamer);
    Page<MyOrder> unFinish(Page<MyOrder> iPage, MyOrder myOrder, HttpServletRequest httpServletRequest);
    Page<MyOrder> finish(Page<MyOrder> iPage, MyOrder myOrder, HttpServletRequest httpServletRequest);
    Page<MyOrder> cancel(Page<MyOrder> iPage, MyOrder myOrder, HttpServletRequest httpServletRequest);
    String orderTaking(WasteOrderParamer wasteOrderParamer, String lockKey);
    OrderDetails findOne(String wasteOrderId);
    Distance findAddress(String wasteOrderId);
    int updateWasteOrder(WasteOrderVo wasteOrderVo);

    int updateWasteOrderDetails1(WasteOrderDetailsVo wasteOrderDetailsVo);
    int updateWasteOrder1(WasteOrderVo1 wasteOrderVo1);
}
